<?php
declare (strict_types=1);
namespace app\common\middleware;
use app\common\service\Power as PowerService;
class Power
{
    public function handle($request, \Closure $next)
    {
        $Service=new PowerService();
        $val=$Service->Node();
        if ($val!=1)
        {
            return BackCode(null, 203, '您没有操作权限');
        }
        return $next($request);
    }
}